#ifndef ACCOUNT_H
#define ACCOUNT_H


#include <iostream>
#include <string>
#include <vector>

class account
{
    private:
        std::string Name;
        std::string PeopleID;
        std::string AccountID;
        std::string Password;
        int PswordWrongNum;
        int Balance;
        std::vector<std::pair<int,std::string>>DepositRecords;
        std::vector<std::pair<int,std::string>>WithdrawRecords;

    public:
        std::string getName();
        std::string getPeopleID();
        std::string getAccountID();
        std::string getPassword();
        int getPswordWrongNum();
        int getBalance();
        const std::vector<std::pair<int,std::string>>& getWithdrawRecords();

        void AddBalance(int money);
        void SubBalance(int money);
        void SetPassword(std::string new_password);
        int PswordTrue();
        int PswordWrong();
        void AddDeposit(int money,std::string time);
        void AddWithdraw(int money, std::string time);
        friend std::istream& operator>>(std::istream& is,account& zhanghu);
        friend std::ostream& operator<<(std::ostream& os,account& zhanghu);
};


#endif
